package cn.liberals.org.service;

import cn.liberals.basic.utils.PageList;
import cn.liberals.org.domain.Department;
import cn.liberals.org.query.DepartmentQuery;
import com.sun.xml.internal.bind.v2.TODO;

import java.util.List;

/**
* @Description: TODO
* @Author: liberals
* @Version: 1.0
* @Date:  2022/6/21 21:43  
*/
public interface IDepartmentService {
    // 查询所有
    /* 
    * @Title: 
    * @Description: TODO
    * @Author: liberals
    * @Version: 1.0
    * @Date:  2022/6/21 21:44  
    * @Parameters: 
    * @Return 
    */
    List<Department> loadAll();

    // 根据id
    /* 
    * @Title: loadById
    * @Description: TODO
    * @Author: liberals
    * @Version: 1.0
    * @Date:  2022/6/21 21:44  
    * @Parameters: 
    * @Return 
    */
    Department loadById(Long id);

    // 根据Id删除

    /* 
    * @Title: remove
    * @Description: TODO
    * @Author: liberals
    * @Version: 1.0
    * @Date:  2022/6/21 21:45  
    * @Parameters: 
    * @Return 
    */
    void remove(Long id);

    // 新增
    /* 
    * @Title: add
    * @Description: TODO
    * @Author: liberals
    * @Version: 1.0
    * @Date:  2022/6/21 21:45  
    * @Parameters: 
    * @Return 
    */
    void save(Department department);

    // 根据Id修改
    /* 
    * @Title: update
    * @Description: TODO
    * @Author: liberals
    * @Version: 1.0
    * @Date:  2022/6/21 21:45  
    * @Parameters: 
    * @Return 
    */
    void update(Department department);

    // 高级+分页查询
    /* 
    * @Title: queryData
    * @Description: TODO
    * @Author: liberals
    * @Version: 1.0
    * @Date:  2022/6/21 21:45  
    * @Parameters: 
    * @Return 
    */
    PageList<Department> queryData(DepartmentQuery departmentQuery);

}
